    <jsp:include page="../common/header.jsp" />
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
                    <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">                    
      <div id="content-header"> 
		  <h1>Admission</h1>
		  <h3>Student details</h3>
		  <div id="app-back-button">							
		    <a onclick="history.back(); return false;" href="#"><button class="btn btn-primary btn-lg" type="button">Back</button></a>
		  </div>		  
		 <hr>
		</div>
		
		<div class="col-lg-6">
		
		
		
  <form action="saveAddmissionForm.htm" id="admissionForm" method="post" name="admissionForm" role="form" class="form-horizontal"> 
      
      <div id="autofill-area">
        <div class="form-group">	
			<label class="control-label col-xs-3" for="student_admission_no">Admission number</label>
            <div class="col-xs-6">
                <input id="student_admission_no" class="form-control" name="admissionNo" type="text" value="${admissionNo}"/>
            </div>
        </div>
        <div class="form-group">	
			 <label  class="control-label col-xs-3" for="student_admission_date">Admission Date <span class="necessary-field">*</span> </label>
            <div class="col-xs-6">                
                <input id="datepicker_1" class="form-control" name="admissionDate" readonly="readonly" type="text" value="" /> 
            </div>
        </div>

      </div>

		<hr />
      <span class="span-sub-heading">Personal Details</span>
      <hr class="sub-heading"></hr>

        <div class="form-group">	
			<label class="control-label col-xs-3" for="student_grade">First Name<span class="necessary-field">*</span></label>
            <div class="col-xs-6">
                <input id="student_first_name" class="form-control" name="userDisplayNameFirst"  type="text" value="${admissionForm.userDisplayNameFirst}"/>
            </div>
        </div>
 
         <div class="form-group">	
			<label class="control-label col-xs-3" for="student_grade">Last Name<span class="necessary-field">*</span></label>
            <div class="col-xs-6">
                <input id="student_first_name" class="form-control" name="userDisplayNameLast"  type="text" value="${admissionForm.userDisplayNameLast}"/>
            </div>
        </div>       

      <div id="admission1_form_vertical_block_left">
        
        <div class="form-group">
          <label class="control-label col-xs-3" for="student_grade">Course And Batch<span class="necessary-field">*</span></label>
                <div class="col-xs-4">
                <select class="form-control" id="student_batch_id" name="sectionId">
                <c:forEach var="section" items="${section}">                
				 <option value="${section.sectionId}" <c:if test="${admissionForm.sectionId == section.sectionId}}"> selected="selected" </c:if>>${section.clas.name} - ${section.name}</option>  
				</c:forEach>
               </select>
               </div>
        </div>  

         <div class="form-group">	
			<label class="control-label col-xs-3" for="student_date_of_birth">Date of Birth<span class="necessary-field">*</span></label>
            <div class="col-xs-6">
                <input class="form-control" id="datepicker_2" name="dob" type="text" value=""/>
            </div>
        </div> 

								<div class="form-group">
                                            <label class="control-label col-xs-3">Gender</label>
                                            <div class="col-xs-5">
                                            <label class="radio-inline">
                                                <input type="radio" checked="" value="option1" id="optionsRadiosInline1" name="optionsRadiosInline">Male
                                            </label>                                            
                                            <label class="radio-inline">
                                                <input type="radio" value="" id="optionsRadiosInline2" name="optionsRadiosInline">Female
                                            </label>
                                            </div>
                                        </div>

        <div class="form-group">
          <label class="control-label col-xs-3">Blood Group</label>          
          <div class="col-xs-4">
          <select id="student_blood_group" class="form-control" name="bloodGroup"><option value="">Unknown</option>
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="O+">O+</option>
<option value="O-">O-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option></select>
    </div>
        </div>
        


        <div class="form-group">
          <label class="control-label col-xs-3" for="student_category">Category</label>
          <div class="col-xs-4">
          <select class="form-control"  id="studentCategoryId" name="studentCategoryId">
           <option value="">Select</option>
                <c:forEach var="category" items="${category}">                
				 <option value="${category.id}" <c:if test="${admissionForm.studentCategoryId == category.id}}"> selected="selected" </c:if>>${category.name}</option>  
				</c:forEach>
			</select>
			</div>
	    </div>
	    
	<br />
      <div id="admission1_form_vertical_block_right">
        <span class="span-sub-heading">Contact Details</span>
        <hr class="sub-heading"></hr>
        
        <div class="form-group">
          <label class="control-label col-xs-3" for="student_city">Address Line1</label>
          <div class="col-xs-6">          
          <input id="student_address_line1" class="form-control" name="address1" type="text" />
          </div>
        </div>
        
        <div class="form-group">
          <label class="control-label col-xs-3" for="student_city">Address Line2</label>
          <div class="col-xs-6">
          <input  id="student_address_line2" class="form-control" name="address2" type="text" />
          </div>
        </div>
        

        <div class="form-group">
          <label class="control-label col-xs-3" for="student_pin_code">PIN code</label>
           <div class="col-xs-6">
          <input id="student_pin_code" class="form-control" name="pin" type="text" value="${admissionForm.pin}"/>
          </div>
        </div>
        
       
        <div class="form-group">
          <label class="control-label col-xs-3" for="student_phone1">Phone</label>
            <div class="col-xs-6">
           <input id="student_phone1" class="form-control" name="phone"  type="text" value="${admissionForm.phone}"/>
          </div>
        </div>
        

        <div class="form-group">
          <label class="control-label col-xs-3" for="student_email">Email</label>
          <div class="col-xs-6">
          <input id="student_email" class="form-control" name="emailId" type="text" value="${admissionForm.emailId}"/>
          </div>
        </div>
        
        <br/>
        <hr class="sub-heading"></hr>
       
        <div class="form-group">
            <label class="control-label col-xs-3" >File input</label>
            <input id="student_photo" name="thumbnailPhotoUrl" type="file">
         </div>
        
      </div>
    </div>
		<br >
        <div class="form-group">
            <div class="col-xs-offset-3 col-xs-6">
            	<div align="center">
                <input type="submit" class="btn btn-primary" value="Submit">
                <input type="reset" class="btn btn-primary" value="Reset">
                </div>
            </div>
        </div>
  </form>




<script>
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!

var yyyy = today.getFullYear();
if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm} var today = dd+'-'+mm+'-'+yyyy;
$("#datepicker_1").val(today);
</script>


                </div>
                
                <!-- /.col-lg-12 -->
            </div>
        </div>
 </div>
<jsp:include page="../common/footer.jsp" />